﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp2
{
   public class Context
    {
       private Food food;
       public Context(int type)
        {
            switch (type)
            {
                case 0:
                    food = new TomatoScrambledEggs();
                    break;
                case 1:
                    food = new ShreddedPorkWithPotatoes();
                    break;
            }
        }

       public void Print() 
       {
           food.Print();
       }

    }
}
